package com.dragon.english_practice_back.service;


import com.dragon.english_practice_back.entity.LoginUserDetails;
import com.dragon.english_practice_back.entity.User;
import org.springframework.security.core.Authentication;

public interface AuthenticationUtil {

    int id();
    User getUser();
    LoginUserDetails getLoginUserDetails();
    Authentication getAuthentication();
    boolean cacheUserData(LoginUserDetails loginUserDetails);
    boolean unCacheUserData();
    boolean loadUserData(Integer id);
}
